//package com.alibaba.cirtus.ots.application.app.ability.facade;
//
//import com.alibaba.cz.base.tool.log.Log;
//import com.alibaba.fastjson.JSONObject;
//import com.epoch.app.otsapplicationappsdk.transportorderdetail.dto.RenderRequest;
//import com.epoch.app.otsapplicationappsdk.transportorderdetail.service.TransportOrderDetailService;
//import com.epoch.app.otsunifiedinventory.model.dto.MnTmsShipListTestRequest;
//import com.epoch.app.otsunifiedinventory.model.dto.MnTmsShipListTestResponse;
//import com.epoch.app.otsunifiedinventory.service.OtsUnifiedInventoryService;
//import org.apache.commons.lang3.StringUtils;
//import org.springframework.stereotype.Service;
//
//import javax.annotation.Resource;
//import java.util.ArrayList;
//import java.util.List;
//
//@Service
//public class TransportOrderDetailServiceImpl implements TransportOrderDetailService {
//
//    private static Log log = Log.getLogger(TransportOrderDetailServiceImpl.class);
//
//    @Resource
//    private OtsUnifiedInventoryService otsUnifiedInventoryService;
//    @Override
//    public Object render(RenderRequest renderRequest) {
//        log.info("装运单抬头查询异常 请求参数 {} " , JSONObject.toJSONString(renderRequest));
//        JSONObject result = new JSONObject();
//        JSONObject request = JSONObject.parseObject( JSONObject.toJSONString(renderRequest.getRequestBody()));
//        if (null==request|| StringUtils.isBlank(request.getString("sapAllocateOrderId"))){
//            result.put("success",false);
//            result.put("message","外部单号不能为空!");
//            return result;
//        }
//        try {
//
//            MnTmsShipListTestRequest mnTmsShipListTestRequest = new MnTmsShipListTestRequest();
//            mnTmsShipListTestRequest.setSapAllocateOrderId(request.getString("sapAllocateOrderId"));
//            return otsUnifiedInventoryService.mnTmsShipListTest(mnTmsShipListTestRequest);
////            List<JSONObject> transportOrderDetailList = new ArrayList<>();
////            JSONObject transportOrderDetailJson = new JSONObject();
////            transportOrderDetailList.add(transportOrderDetailJson);
////            result.put("success",true);
////            result.put("result",transportOrderDetailList);
//        } catch (Exception e) {
//            log.error("装运单抬头查询异常");
//            result.put("success",false);
//            result.put("message","装运单抬头查询异常");
//        }
//
//        return result;
//    }
//
//}
